package whu.iss.services.impl.sys;


import java.util.List;

import whu.iss.pojo.UserCustom;
import whu.iss.system.db.DBUtils;
import whu.iss.system.tools.Tools;

public class LoginServices {
	public List<UserCustom> checkUser(String lname,String pwd)throws Exception
	{
		UserCustom usercustom=new UserCustom();
		usercustom.setUsername(lname);
		usercustom.setPwd(Tools.getMd5(pwd));
		List<UserCustom> userInfo=DBUtils.getUserMapper().checkUser(usercustom);
		DBUtils.close();
		return userInfo;

	}

}
